package Test_1212;

import java.util.Arrays;

/**
 * Created with Intellij IDEA
 * Description:
 * User: 星辰
 */
public class Test {
    public static void main2(String[] args) {
        System.out.println(5/2);
    }
    public static void main(String[] args) {
        int[] array={25,1,3,2,11,5,8,64,35,23,9};
        System.out.println("排序前："+ Arrays.toString(array));
        array=Arrays.copyOf(array,array.length);
        long startTime=System.currentTimeMillis();
        //Sort.shellSort(array);
        //Sort.selectSort(array);
        //Sort.selectSort2(array);
        //Sort.bubbleSort(array);
        //Sort.quickSort(array);
        Sort.mergeSort(array);
        long endTime=System.currentTimeMillis();
        System.out.println("排序后："+ Arrays.toString(array));
        System.out.println(endTime-startTime);
    }
}
